<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script>
        async function fun1() {
            return 10
        }
        async function fun2() {
            // let res = await fun1() // 会返回一个 10 普通值
            let res = await Promise.reject("something wrong")
            console.log("await got" + res)
        }
        fun2()
    </script>
</head>
<body>
    
</body>
</html>